﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DangSanPhamControl.ascx.cs"
    Inherits="TMDT.Web.UI.Controls.DangSanPhamControl" %>
<table>
    <tr>
        <td>
            Chủng loại:
        </td>
        <td>
            <asp:DropDownList runat="server" ID="ddlChungLoai" AutoPostBack="True" 
                onselectedindexchanged="ddlChungLoai_SelectedIndexChanged" >
            </asp:DropDownList>
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td>
            Loại sản phẩm:
        </td>
        <td>
            <asp:DropDownList runat="server" ID="ddlLoaiSanPham" AutoPostBack="True" OnSelectedIndexChanged="ddlIDLoaiSanPham_SelectedIndexChanged">
            </asp:DropDownList>
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td>
            Tên sản phẩm :
        </td>
        <td>
            <asp:TextBox runat="server" ID="txtTenSanPham"></asp:TextBox>
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td>
            Nhà sản xuất:
        </td>
        <td>
            <asp:DropDownList runat="server" ID="ddlNhaSanXuat">
            </asp:DropDownList>
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;
        </td>
        <td>
            <asp:CheckBox runat="server" ID="chkIsKhuyenMai" Text="Khuyến mãi"></asp:CheckBox>
        </td>
        <td>
        </td>
    </tr>
    
    <tr>
        <td>
            Nội dung khuyến mãi:
        </td>
        <td>
            <asp:TextBox runat="server" ID="txtNoiDungKhuyenMai" Text="" CssClass="text"></asp:TextBox>
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td>
            Số lượng:
        </td>
        <td>
            <asp:TextBox runat="server" ID="txtSoLuong" Text="" CssClass="text"></asp:TextBox>
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td>
            Thời gian BH:
        </td>
        <td>
            <asp:TextBox runat="server" ID="txtThoiGianBaoHanh" Text="" CssClass="text"></asp:TextBox>
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td>
            Giá:
        </td>
        <td>
            <asp:TextBox runat="server" ID="txtGia" Text="" CssClass="text"></asp:TextBox>
        </td>
        <td>
        </td>
    </tr>
        <tr>
        <td>
            Hình ảnh:
        </td>
        <td>
            <asp:FileUpload ID="fuHinhAnh" runat="server" />
        </td>
        <td>
        </td>
    </tr>
    <asp:Repeater ID="rptNoiDungThuocTinh" runat="server" OnItemDataBound="rptNoiDungThuocTinh_ItemDataBound">
        <ItemTemplate>
            <tr>
                <td>
                    <asp:Label ID="lblTenThuocTinh" runat="server"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtNoiDungThuocTinh" runat="server" ></asp:TextBox>
                    <asp:HiddenField ID="hfdNoiDungThuocTinh" runat="server" Value='<%# Eval("IDThuocTinh") %>' />
                </td>
                <td>
                </td>
            </tr>
        </ItemTemplate>
    </asp:Repeater>
    <tr>
        <td>
        </td>
        <td>
            <asp:LinkButton ID="lbnDangSanPham" runat="server" OnClick="lbnDangSanPham_Click">Đăng sản phẩm</asp:LinkButton>
        </td>
        <td>
        </td>
    </tr>
</table>
